<template>
  <div id="app">
    <el-container>
      <el-header>
        <layout-header/>
      </el-header>
      <el-main>
        <router-view/>
      </el-main>
      <el-footer>
        <layout-footer/>
      </el-footer>
    </el-container>
    <!--回到顶部-->
    <template>
      <el-backtop :visibility-height="200" :right="30" :bottom="60">
        <div class="back-top">
          <el-icon class="el-icon-arrow-up"></el-icon>
        </div>
      </el-backtop>
    </template>
  </div>
</template>

<script>
import LayoutHeader from "@/components/LayoutHeader";
import LayoutFooter from "@/components/LayoutFooter";

export default {
  components: {LayoutFooter, LayoutHeader}
}
</script>

<style lang="less">

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
}

.el-header, .el-footer {
  padding: 0 !important;
}

.el-main {
  width: 80%;
  margin: auto;
}

.back-top {
  height: 100%;
  width: 100%;
  background-color: #f2f5f6;
  box-shadow: 0 0 6px rgba(0, 0, 0, .12);
  text-align: center;
  line-height: 40px;
  color: #1989fa;
}
</style>
